<template>
  <div>
    <svg-icon icon-class="download" @click="goto" />
  </div>
</template>

<script>
export default {
  name: 'RuoYiGit',
  data() {
    return {
      url: ''
    }
  },
  created() {
    this.getConfigKey("sys.index.doc").then(response => {
      this.url = response.msg;
    });
  },
  methods: {
    goto() {
      window.open("https://www.yuque.com/longlong-jtoqy/wzqn3q/webtopo");
      // let link = document.createElement('a')
      // link.style.display = 'none'
      // link.href = this.url;
      // link.setAttribute('download', "操作文档");
      // document.body.appendChild(link)  ;
      // link.click();
    }
  }
}
</script>